/*
 * @Author: your name
 * @Date: 2020-09-16 17:59:03
 * @LastEditTime: 2020-11-18 16:34:08
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \inventory-apie:\hjimi\人脸\html\face-recognition\src\api\dataDisplay.js
 */
 
import request from '@/utils/request'
let apis = 'apis/api/user/api/admin/'
// 用户查询
/**
 * @description: 
 * @param {createDateFrom,createDateTo,current,size,status} 
 * @return {type} 
 */
export function adminSearch(params) {
  return request({
    url: apis,
    method: 'get',
    params
  })
}

// 删除用户
/**
 * @description: 
 * @param {datas} 
 * @return {type} 
 */
export function adminDelete(params) {
    return request({
      url: `${ apis }delete`,
      method: 'post',
      params
    })
  }

  // 修改用户状态
/**
 * @description: 
 * @param {datas,status(enabled,disabled)} 
 * @return {type} 
 */
export function adminUpdate(params) {
    return request({
      url: `${ apis }update`,
      method: 'post',
      params
    })
  }
   
 